import request from '@/utils/request'
//查询
export const plantingoutputinfoGetService = () => {
  return request.get('adminplantingoutput/search')
}

//添加
export const plantingoutputinfoAddService = ({
  id,
  vegetableid,
  output,
  salesamount,
  saledate,
  remarks,
  name
}) => {
  return request.post('adminplantingoutput/add', {
    id,
    vegetableid,
    output,
    salesamount,
    saledate,
    remarks,
    name
  })
}
//更新
export const plantingoutputinfoUpService = ({
  id,
  vegetableid,
  output,
  salesamount,
  saledate,
  remarks,
  name
}) => {
  return request.put('adminplantingoutput/up', {
    id,
    vegetableid,
    output,
    salesamount,
    saledate,
    remarks,
    name
  })
}
//删除
export const plantingoutputinfoDlService = (id, vegetableid) => {
  return request.delete('adminplantingoutput/delete', {
    params: { id, vegetableid }
  })
}
